package br.ufpb.di.knowledgetv.sqtv.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * User: manoel
 * Date: 08/07/13
 */
public class Result {

    private Map<String, Object> values = new HashMap<String, Object>();

    public Result() {
    }

    public void put(String fieldName, Object fieldValue) {
        this.values.put(fieldName, fieldValue);
    }

    public Object get(String fieldName) {
        return this.values.get(fieldName);
    }

    public Object[] getFieldNames() {
        return this.values.keySet().toArray();
    }

    public Map<String, Object> getValues() {
        return values;
    }
}
